<script>
$(document).ready(function() {
	<?php
	if ($updated == 1) echo 'showNoti("New module: '.$name.'", "Cập nhập new_module thành công!", "Ok");';
	if ($failed == 1) echo 'showNoti("New module: '.$name.'", "Cập nhập new_module thất bại!", "Err");';
	?>
});
</script>
<?php
echo form_open_multipart($action, array('id' => 'updateFrm'));
echo form_input(array('type' => 'hidden', 'name' => 'token', 'value' => $GLOBALS['var']['token']));
echo form_input(array('type' => 'hidden', 'name' => 'id', 'value' => $info['id']));
echo module_open();
?>
<tr>
    <td>
        <input type="hidden" class="tabId" value="<?php echo $GLOBALS['var']['mytab'] ?>" />
        <ul id="myTab" class="nav nav-tabs">
            <li class="hide640<?php echo ($GLOBALS['var']['mytab'] == 0 ? ' active' : '') ?>" onclick="set_mytab($(this))"><a href="#tabs-0" data-toggle="tab">Sample tab</a></li>

            <li class="dropdown active show640">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="current-tab-name">Sample tab</span> <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li <?php echo ($GLOBALS['var']['mytab'] == 0 ? ' class="active"' : '') ?>onclick="set_mytab($(this))"><a href="#tabs-0" data-toggle="tab">Sample tab</a></li>

                </ul>
            </li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div id="tabs-0" class="tab-pane<?php echo ($GLOBALS['var']['mytab'] == 0 ? ' active' : '') ?>">
                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td class="fr">
                            <div class="tdleft">Sample field</div>
                            <div class="tdright"><input type="text" name="date_added" id="date_added" data-format="yy-mm-dd" value="<?php echo $info['date_added'] ?>" style="width:120px !important;" /></div>
                        </td>
                    </tr>

                </table>
            </div>
        </div>
    </td>
</tr>
<?php
echo module_close();
echo form_close();
?>